import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/home.vue'
import Aa from '@/views/home/aa.vue'
import Ab from '@/views/home/ab.vue'
import Ac from '@/views/home/ac.vue'
import Ad from '@/views/home/ad.vue'
import Ss from '@/views/ss.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
      children:[
        {path: 'aa',component: Aa,},
        {path: 'ab',component: Ab,},
        {path: 'ac',component: Ac,},
        {path: 'ad',component: Ad,},
      ],
    },
    {
       path: '/ss',
      name: 'ss',
      component: Ss,
    }
  ],
})

export default router
